package com.ruoyi.iot.client;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

@Slf4j
public class PortClientCallback implements NioClient.PortCallback {

    @Override
    public void readTotalEnergy(BigDecimal totalW, BigDecimal positiveW, BigDecimal negativeW, BigDecimal v, BigDecimal a, BigDecimal w, BigDecimal factor, BigDecimal rate, BigDecimal reactiveW, BigDecimal apparentW) {

    }

    @Override
    public void writeOutage() {

    }

    @Override
    public void writeElectrify() {

    }

    @Override
    public void readMalignantLoadState(int state) {

    }

    @Override
    public void readTotalPowerState(int state) {

    }

    @Override
    public void readPeriodsState(int state) {

    }

    @Override
    public void readSinglePowerState(int state) {

    }

    @Override
    public void writeProofreadTime() {

    }

    @Override
    public void readProofreadTime(int second, int minute, int hour, int week, int day, int month, int year) {

    }

    @Override
    public void writeMalignantLoadLimit() {

    }

    @Override
    public void readMalignantLoadLimit(BigDecimal w) {

    }

    @Override
    public void writeViolationsPower() {

    }

    @Override
    public void readViolationsPower(BigDecimal w) {

    }

    @Override
    public void writeUseElectricity() {

    }

    @Override
    public void readUseElectricity(BigDecimal w) {
        log.info("readUseElectricity " + w);
    }

    @Override
    public void writePeriods(int runType) {

    }

    @Override
    public void readPeriods(int state1, String time1, int state2, String time2) {

    }

    @Override
    public void readPeriods() {

    }

    @Override
    public void writeAddress() {

    }

    @Override
    public void readAddress(short address) {

    }

    @Override
    public void writeRebootTime() {

    }

    @Override
    public void readRebootTime(short time) {

    }

    @Override
    public void readRelaysRealState(int state) {

    }

    @Override
    public void callBackFail() {

    }
}
